package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;

@TableMeta(name = "VC_CATEGORY", title = "京东类目属性")
public class VCCategory {

    @FieldMeta(name = "ID", title = "ID", primary = true)
    private Integer id;

    @FieldMeta(name = "PID", title = "上级类目ID")
    private Integer pid;

    @FieldMeta(name = "NAME", title = "类目名称", length = 32)
    private String name;

    @FieldMeta(name = "LEVEL", title = "类目层级")
    private Integer level;

    @FieldMeta(name = "PNAME", title = "上级类目名称", length = 32)
    private String pname;

    @FieldMeta(name = "VCCODE", title = "店铺简码", length = 32)
    private String vccode;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getVccode() {
        return vccode;
    }

    public void setVccode(String vccode) {
        this.vccode = vccode;
    }

    @Override
    public String toString() {
        return "VCCategory{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", level=" + level +
                '}';
    }

}
